var mongoose=require('mongoose');
var config=require('./config.js');

module.exports= function () {
    require('../models/test.server.model.js');
    require('../models/user.server.model.js');
    require('../models/post.server.model.js');
    return mongoose.connect(config.mongodb,{useMongoClient:true});
};